-- GENERATED SPELL FOR [Azure Stalker] --


function spell0_32191(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(58471,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32191', 599, 1)
end

function spell1_32191(pUnit, Event) --@Destroy Door Seal,n/a--
pUnit:FullCastSpellOnTarget(58040,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32191', 0, 1)
end

function spell2_32191(pUnit, Event) --@Tactical Blink,n/a--
pUnit:FullCastSpellOnTarget(58470,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32191', 1322, 1)
end

function Sorts_32191(pUnit, Event)
local choix_sorts_32191 = math.random(0, 2)
if choix_sorts_32191 == 0 then
pUnit:RegisterEvent('spell0_32191', 1, 1)
end
if choix_sorts_32191 == 1 then
pUnit:RegisterEvent('spell1_32191', 1, 1)
end
if choix_sorts_32191 == 2 then
pUnit:RegisterEvent('spell2_32191', 1, 1)
end
end

function mob32191_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32191', math.random(1500, 3000), 1)
end

function mob32191_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32191_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32191_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32191, 1, 'mob32191_Action')
RegisterUnitEvent(32191, 2, 'mob32191_Leave')
RegisterUnitEvent(32191, 3, 'mob32191_Kill')
RegisterUnitEvent(32191, 4, 'mob32191_Die')
